package com.ruoyi.electricity.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ElectricityAlarmLevelCount {
    String electricityAlarmLevel;
    Integer count;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ElectricityAlarmLevelCount that = (ElectricityAlarmLevelCount) o;
        return Objects.equals(electricityAlarmLevel, that.electricityAlarmLevel);
    }

    @Override
    public int hashCode() {
        return Objects.hash(electricityAlarmLevel, count);
    }
}
